import fasttext

# 无监督训练方法
# model = fasttext.train_unsupervised(
#     "fil9",
#     "cbow",
#     dim=300,
#     epoch=1,
#     lr=0.1,
#     thread=8
# )
model = fasttext.load_model("./model_word2vec.bin")

# model.save_model("./model_word2vec.bin")

# val = model.get_word_vector("sports")
# print(val)

val = model.get_nearest_neighbors("sports")
print(val)
